#ifndef PLOT_H
#define PLOT_H

////////////////////////////////////////////////////
#include "qwt_plot.h"
#include "qwt_plot_curve.h"
#include "qwt_plot_grid.h"
#include "qwt_legend.h"
#include "qwt_plot_canvas.h"
#include "qwt_plot_panner.h"
#include "qwt_plot_magnifier.h"
#include "qwt_plot_renderer.h"
#include "qwt_plot_zoomer.h"
#include "qwt_plot_picker.h"
#include "qwt_picker_machine.h"
#include "qwt_plot_legenditem.h"
#include "qwt_plot_marker.h"

////////////////////////////////////////////////////
class Plot : public QwtPlot
{
public:
	Plot(void);
	~Plot(void);
	void XscaleLock(bool on);
	void YscaleLock(bool on);
	void gridOnOff(bool on);
	void setCanvasColor(QColor c);
	QColor getCanvasColor(void);

private:
	bool m_grid_flag;
	QwtPlotCanvas *m_canvas;
	QColor m_canvas_color;
	QwtPlotGrid *m_grid;
	QwtPlotLegendItem *m_legendItem;
	QwtPlotMarker *m_marker;
	QwtPlotPicker *m_d_picker;
	QwtPlotZoomer *m_zoomer;
	QwtPlotPanner *m_panner;
	QwtPlotMagnifier *m_plotMagnifier;
};

#endif